package technion.gc.web;

import java.util.ArrayList;

import org.apache.log4j.Logger;

import technion.gc.api.interfaces.AbstractGraphNode;

public class WebGraphNode extends AbstractGraphNode {
	
	private int depth = 1;
	private int maximumDepth = 1;
	private boolean domainConsistent = false;
	private String domain = "";
	private Logger log;
	
	public Logger getLog() {
		return log;
	}

	public void setLog(Logger _log) {
		log = _log;
	}

	private ArrayList<AbstractGraphNode> neighbors = new ArrayList<AbstractGraphNode>();

	public WebGraphNode(Object _data) {
		super(_data);
	}

	@Override
	public ArrayList<AbstractGraphNode> getNeighbors() {
		return neighbors;
	}

	@Override
	public void setNeighbors(ArrayList<AbstractGraphNode> _neighbors) {
		neighbors = _neighbors;
	}

	public void setDepth(int _depth) {
		depth = _depth;
	}

	public void setMaximumDepth(int _maximumDepth) {
		maximumDepth = _maximumDepth;		
	}

	public void setDomainConsistent(boolean _domainConsistent) {
		domainConsistent = _domainConsistent;		
	}

	public int getDepth() {
		return depth;
	}

	public int getMaximumDepth() {
		return maximumDepth;
	}

	public boolean getDomainConsistent() {
		return domainConsistent;
	}
	
	public String getDomain() {
		return domain;
	}

	public void setDomain(String _domain) {
		domain = _domain;
	}

}
